x86/cpu: Rework AMD masking MSR setup
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 31 Jul 2015 19:18:22 +0000 (20:18 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 8 Apr 2016 20:54:26 +0000 (21:54 +0100)
commit3ec93586b32d27d7787205ec72eb0f7b7e0a0d03
tree4825d409251ccc8f77d255f04412a67ae0b7058b
parent67528a3f0649703286dba8bbba1cc2ddd3cc7a5f
x86/cpu: Rework AMD masking MSR setup

This patch is best reviewed as its end result rather than as a diff, as it
rewrites almost all of the setup.

On the BSP, cpuid information is used to evaluate the potential available set
of masking MSRs, and they are unconditionally probed, filling in the
availability information and hardware defaults.

The command line parameters are then combined with the hardware defaults to
further restrict the Xen default masking level.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <JBeulich@suse.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/arch/x86/cpu/amd.c